  -- Nightbane --
function spell0_17225(pUnit, Event) --@Bellowing Roar,n/a--
pUnit:FullCastSpellOnTarget(36922,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 6500, 1)
end
function spell1_17225(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(30131,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 755, 1)
end
function spell2_17225(pUnit, Event) --@Distracting Ash,n/a--
pUnit:FullCastSpellOnTarget(30130,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 41000, 1)
end
function spell3_17225(pUnit, Event) --@Fireball Barrage,n/a--
pUnit:FullCastSpellOnTarget(30282,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 799, 1)
end
function spell4_17225(pUnit, Event) --@Rain of Bones,n/a--
pUnit:FullCastSpellOnTarget(37098,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 11000, 1)
end
function spell5_17225(pUnit, Event) --@Smoking Blast,n/a--
pUnit:FullCastSpellOnTarget(30128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 1000, 1)
end
function spell6_17225(pUnit, Event) --@Smoking Blast,n/a--
pUnit:FullCastSpellOnTarget(37057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 766, 1)
end
function spell7_17225(pUnit, Event) --@Smoldering Breath,n/a--
pUnit:FullCastSpellOnTarget(30210,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 17000, 1)
end
function spell8_17225(pUnit, Event) --@Tail Sweep,n/a--
pUnit:FullCastSpellOnTarget(25653,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17225', 15000, 1)
end
function Sorts_17225(pUnit, Event)
choix_sorts_17225 = math.random(0, 8)
if choix_sorts_17225 == 0 then
pUnit:RegisterEvent('spell0_17225', 1, 1)
end
if choix_sorts_17225 == 1 then
pUnit:RegisterEvent('spell1_17225', 1, 1)
end
if choix_sorts_17225 == 2 then
pUnit:RegisterEvent('spell2_17225', 1, 1)
end
if choix_sorts_17225 == 3 then
pUnit:RegisterEvent('spell3_17225', 1, 1)
end
if choix_sorts_17225 == 4 then
pUnit:RegisterEvent('spell4_17225', 1, 1)
end
if choix_sorts_17225 == 5 then
pUnit:RegisterEvent('spell5_17225', 1, 1)
end
if choix_sorts_17225 == 6 then
pUnit:RegisterEvent('spell6_17225', 1, 1)
end
if choix_sorts_17225 == 7 then
pUnit:RegisterEvent('spell7_17225', 1, 1)
end
if choix_sorts_17225 == 8 then
pUnit:RegisterEvent('spell8_17225', 1, 1)
end
end
function mob17225_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17225', math.random(1500, 3000), 1)
end
function mob17225_Leave(pUnit, Event)
end
function mob17225_Kill(pUnit, Event)
end
function mob17225_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(17225, 1, 'mob17225_Action')
RegisterUnitEvent(17225, 2, 'mob17225_Leave')
RegisterUnitEvent(17225, 3, 'mob17225_Kill')
RegisterUnitEvent(17225, 4, 'mob17225_Die')
